﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BezierNodeObject : MonoBehaviour
{
    public Transform BezierOffset;

    private BezierNode bezierNode;

    public BezierNode GetBezierNode()
    {
        bezierNode.nodeOffset = BezierOffset.position;
        bezierNode.nodePos = transform.position;
        return bezierNode;
    }

    private void Update()
    {
        Debug.DrawLine(BezierOffset.position, transform.position - (BezierOffset.position - transform.position), Color.yellow);
    }
}
